export default{
   namespaced: true,
   state:()=>({
     historyList: JSON.parse(uni.getStorageSync('historyList') || '[]') ,
   }),
   mutations:{
     updateHistoryList(state,list){
       state.historyList = list
       this.commit('m_searsh/savehistoryListToStorage')
     },
     savehistoryListToStorage(state){
       uni.setStorageSync('historyList',JSON.stringify(state.historyList))
     },
   }
  }